﻿using DbAccess;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DbHelper.Demo
{
    internal class DataBaseFactory
    {
        private static IDataBase _dataBase = null!;

        public static void LoadDataBase(string dbConnString)
        {
            _dataBase = new DataBase(dbConnString);
        }

        public static IDataBase GetDataBase() => _dataBase;
    }
}
